
const { ccclass, property } = cc._decorator;

/** cocos creator bugfixed: 编辑器中设置Rotation会莫名丢失，故使用脚本处理 */
@ccclass
export default class AngleExt extends cc.Component {

    @property
    private readonly rotation: number = 0;

    // LIFE-CYCLE CALLBACKS:

    protected onLoad(): void {
        this.node.angle = this.rotation;
    }
}
